import request from './request'

export const list = (data) => {
  return request({
    url: '/maintainRecord/list',
    method: 'POST',
    data
  })
}

export const listRecord = (data) => {
  return request({
    url: '/maintainRecord/listRecord',
    method: 'POST',
    data
  })
}

export const saveMaintainRecord = (data) => {
  return request({
    url: '/maintainRecord/saveMaintainRecord',
    method: 'POST',
    data
  })
}

export const listAll = (data) => {
  return request({
    url: '/maintainRecord/listAll',
    method: 'POST',
    data
  })
}
export const modify = (data) => {
  return request({
    url: '/maintainRecord/modify',
    method: 'POST',
    data
  })
}

export const remove = (id) => {
  return request({
    url: '/maintainRecord/remove?ids=' + id,
    method: 'GET'
  })
}
